import Vue from 'vue'
import SvgIcon from '@/components/SvgIcon'// svg component
import PngIcon from '@/components/PngIcon'// Png component

// register globally
Vue.component('svg-icon', SvgIcon)
Vue.component('png-icon', PngIcon)

const req = require.context('./svg', false, /\.svg$/)
const reqPng = require.context('./png', false, /\.png$/)
const requireAll = requireContext => requireContext.keys().map(requireContext)
const requireAllPng = requireContext => requireContext.keys().map(requireContext)
requireAll(req)
requireAllPng(reqPng)
